
#include <iostream>
#include <fstream>
#include "includes.hpp"

//#include "collections/LinkedList.cpp"
using namespace std;




int main(int argc, char** argv) {

   
    if (login()) {

        MainView* mainView = new MainView();
        
        mainView->show(); 
    }

//  LinkedList< int >* list = new LinkedList< int >();
//
//  int i1=5;
//  int i3=6;
//  
//  int* k = &i1;
//  int* k2= &i3;
//    list->add( k );
//
//  
//    list->remove(0);
//  Node< int >* fisrt = list->getFirst();
//  while( fisrt != NULL )
//  {
//    std::cout<< *(fisrt->getData()) <<std::endl;
//    fisrt = fisrt->getNext();
//  }
    
//    Book* uno = new Book("estructura1","joyanes","123","editorial","es",65.69);
//    Book* dos = new Book("estructura2","joyanes","123","editorial","es",165.69);
//    Book* tres = new Book("estructura3","joyanes","123","editorial","es",265.69);
//    Book* cuatro = new Book("estructura4","joyanes","123","editorial","es",665.69);
//    
//    OrderDetail* detail1 = new OrderDetail(1,uno);
//    OrderDetail* detail2 = new OrderDetail(2,dos);
//    OrderDetail* detail3 = new OrderDetail(3,tres);
//    OrderDetail* detail4 = new OrderDetail(4,cuatro);
//   
//    User* user = new User("Samuel","123","123");
//    Customer* customer = new Customer("Jansel","","","");
//    Order* order = new Order();
//    order->setUser(user);
//    order->setCustomer( customer );
//    
//    order->addOrderDetail( detail1 );
//    order->addOrderDetail( detail2 );
//    order->addOrderDetail( detail3 );
//    order->addOrderDetail( detail4 );
//    
//    
//    double amount = order->getTotalCost();
//    cout<< amount<<endl;
    return 0;
}

